package com.cyh.testdesignpattern.factory.simplefactory;

public class OrderPizza02 {
    public void setFactory(String orderType) {
        Pizza pizza = SimpleFactory.createPizza2(orderType);
        if(pizza != null) {
            pizza.prepare();
            pizza.bake();
            pizza.cut();
            pizza.box();
        }
    }
}
